package com.sg.service.biz.pbff.impl;

import cn.hutool.core.collection.CollectionUtil;
import com.sg.common.util.RedisUtil;
import com.sg.dto.biz.pbff.req.*;
import com.sg.dto.biz.pbff.res.*;
import com.sg.dto.integration.component.QuerySecurityLicenseDetailReqDto;
import com.sg.dto.integration.component.QuerySecurityLicenseDetailRespDto;
import com.sg.service.biz.pbff.SecurityService;
import com.wicket.okrcomponent.integration.FwCompSecurityClient;
import com.wicket.okrframework.integration.InductionRecordService;
import com.wicket.okrframework.integration.FwBaseSecurityClient;
import com.wicket.okrframework.integration.dto.*;
import com.sg.common.exception.Assert;
import org.apache.skywalking.apm.toolkit.trace.Tag;
import org.apache.skywalking.apm.toolkit.trace.Tags;
import org.apache.skywalking.apm.toolkit.trace.Trace;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.stream.Collectors;

/**
 * @author ：
 * @version 1.0
 * @date ：
 */
@Service
public class SecurityServiceImpl implements SecurityService {

    @Resource
    private RedisUtil redisUtil;
    @Resource
    com.sg.service.biz.framework.SecurityService fwBaseSecurityClient;
    @Resource
    com.sg.service.biz.framework.InductionRecordService fwBaseInductionRecordClient;
    @Resource
    com.sg.service.biz.component.SecurityService fwCompSecurityClient;

    /**
     * B1存档软件授权证书(管理)[6619]
     * gen by moon at 5/12/2023, 3:06:40 AM
     */
    @Trace(operationName = "B1存档软件授权证书(管理)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Override
    public BffArchiveSoftwareAuthorizationRespDto archiveSoftwareAuthorization(BffArchiveSoftwareAuthorizationReqDto reqDto) {


        //步骤0: D1存档软件授权证书 - archiveSoftwareAuthorization
        ArchiveSoftwareAuthorizationRespDto archiveSoftwareAuthorizationRespDto = null;
        ArchiveSoftwareAuthorizationReqDto archiveSoftwareAuthorizationReqDto = new ArchiveSoftwareAuthorizationReqDto();
        if (reqDto != null) {
            archiveSoftwareAuthorizationReqDto.setAuthorizationId(reqDto.getAuthorizationId());//SimpleFieldAssign//sourceId:929053_1
        }

        /*D1存档软件授权证书[6618]   */
        Assert.isNull(archiveSoftwareAuthorizationReqDto.getAuthorizationId(), "B1存档软件授权证书(管理)-D1存档软件授权证书-授权证书ID不能为空", false);
        archiveSoftwareAuthorizationRespDto = fwBaseSecurityClient.archiveSoftwareAuthorization(archiveSoftwareAuthorizationReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


        BffArchiveSoftwareAuthorizationRespDto retData = new BffArchiveSoftwareAuthorizationRespDto();


        return retData;
    }

    /**
     * B1查询软件授权证书列表(管理)[6608]
     * gen by moon at 5/20/2023, 9:58:35 PM
     */
    @Trace(operationName = "B1查询软件授权证书列表(管理)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Override
    public BffQuerySoftwareAuthorizationListRespDto querySoftwareAuthorizationList(BffQuerySoftwareAuthorizationListReqDto reqDto) {


        QuerySoftwareAuthorizationListRespDto querySoftwareAuthorizationListRespDto_1 = null;
        BatchQueryInductionRecordComRespDto batchQueryInductionRecordComRespDto_1 = null;
//步骤0: D1查询软件授权证书列表 - querySoftwareAuthorizationList
        QuerySoftwareAuthorizationListRespDto querySoftwareAuthorizationListRespDto = null;
        QuerySoftwareAuthorizationListReqDto querySoftwareAuthorizationListReqDto = new QuerySoftwareAuthorizationListReqDto();
        if (reqDto != null) {
            querySoftwareAuthorizationListReqDto.setAuthorizationSpaceId(reqDto.getAuthorizationSpaceId());//SimpleFieldAssign//sourceId:928067_1
            querySoftwareAuthorizationListReqDto.setIsArchive(reqDto.getIsArchive());//SimpleFieldAssign//sourceId:928068_1
        }

        /*D1查询软件授权证书列表[6553]   */
        Assert.isNull(querySoftwareAuthorizationListReqDto.getAuthorizationSpaceId(), "B1查询软件授权证书列表(管理)-D1查询软件授权证书列表-租户空间ID不能为空", false);
        Assert.isNull(querySoftwareAuthorizationListReqDto.getIsArchive(), "B1查询软件授权证书列表(管理)-D1查询软件授权证书列表-是否存档不能为空", false);
        querySoftwareAuthorizationListRespDto = fwBaseSecurityClient.querySoftwareAuthorizationList(querySoftwareAuthorizationListReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


        querySoftwareAuthorizationListRespDto_1 = querySoftwareAuthorizationListRespDto;

//步骤1: D1-3批量查询就职记录(管理)(公共) - batchQueryInductionRecordCom
        BatchQueryInductionRecordComRespDto batchQueryInductionRecordComRespDto = null;
        if (querySoftwareAuthorizationListRespDto != null) {
            BatchQueryInductionRecordComReqDto batchQueryInductionRecordComReqDto = new BatchQueryInductionRecordComReqDto();
            if (querySoftwareAuthorizationListRespDto != null && querySoftwareAuthorizationListRespDto.getSoftwareAuthorizationList() != null && !CollectionUtil.isEmpty(querySoftwareAuthorizationListRespDto.getSoftwareAuthorizationList())) {
                batchQueryInductionRecordComReqDto.setOrgInductionRecordList(querySoftwareAuthorizationListRespDto.getSoftwareAuthorizationList().stream().map(item -> item.getOperationInductionId())
                        .collect(Collectors.toList()));/*list-to-strings*///sourceId:928312_1
            }

            /*D1-3批量查询就职记录(管理)(公共)[5024]   */

            batchQueryInductionRecordComRespDto = fwBaseInductionRecordClient.batchQueryInductionRecordCom(batchQueryInductionRecordComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


            batchQueryInductionRecordComRespDto_1 = batchQueryInductionRecordComRespDto;
        }

        BffQuerySoftwareAuthorizationListRespDto retData = new BffQuerySoftwareAuthorizationListRespDto();
        //数据集融合  MoreListToOneSource
        if (querySoftwareAuthorizationListRespDto_1 != null && !CollectionUtil.isEmpty(querySoftwareAuthorizationListRespDto_1.getSoftwareAuthorizationList())) {
            for (SoftwareAuthorizationDto softwareAuthorizationDto : querySoftwareAuthorizationListRespDto_1.getSoftwareAuthorizationList()) {
                BffSoftwareAuthorizationDto retElm = new BffSoftwareAuthorizationDto();
                if (querySoftwareAuthorizationListRespDto_1 != null) {
                    retElm.setAuthorizationId(softwareAuthorizationDto.getAuthorizationId());//SimpleFieldAssign//sourceId:200347_2
                    retElm.setAuthorizationName(softwareAuthorizationDto.getAuthorizationName());//SimpleFieldAssign//sourceId:200348_2
                    retElm.setAuthorizationKeyTypeCode(softwareAuthorizationDto.getAuthorizationKeyTypeCode());//SimpleFieldAssign//sourceId:200693_2
                    retElm.setSubjectLifeCycle(softwareAuthorizationDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:200694_2
                    retElm.setOperationInductionId(softwareAuthorizationDto.getOperationInductionId());//SimpleFieldAssign//sourceId:200349_2
                    retElm.setOperateTime(softwareAuthorizationDto.getOperateTime());//SimpleFieldAssign//sourceId:200350_2
                }
                retData.getSoftwareAuthorizationList().add(retElm);
                if (batchQueryInductionRecordComRespDto_1 != null) {
                    for (OrgInductionRecordDto orgInductionRecordDto : batchQueryInductionRecordComRespDto_1.getOrgInductionRecordList()) {
                        if (orgInductionRecordDto.getInductionRecordId().equals(softwareAuthorizationDto.getOperationInductionId())) {
                            if (batchQueryInductionRecordComRespDto_1 != null) {
                                retElm.setUserId(orgInductionRecordDto.getUserId());//SimpleFieldAssign//sourceId:200351_2
                                retElm.setUserFace(orgInductionRecordDto.getUserFace());//SimpleFieldAssign//sourceId:200352_2
                                retElm.setIdCardName(orgInductionRecordDto.getIdCardName());//SimpleFieldAssign//sourceId:200353_2
                                retElm.setNickName(orgInductionRecordDto.getNickName());//SimpleFieldAssign//sourceId:200354_2
                            }
                        }
                    }
                }

            }
        }//sourceId:935499_1


        return retData;
    }

    /**
     * B1查询软件授权证书详情(管理)[6611]
     * gen by moon at 5/13/2023, 5:24:29 AM
     */
    @Trace(operationName = "B1查询软件授权证书详情(管理)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Override
    public BffQuerySoftwareAuthorizationDetailRespDto querySoftwareAuthorizationDetail(BffQuerySoftwareAuthorizationDetailReqDto reqDto) {


        QuerySoftwareAuthorizationDetailRespDto querySoftwareAuthorizationDetailRespDto_1 = null;
        QueryInductionRecordInfoDetailComRespDto queryInductionRecordInfoDetailComRespDto_1 = null;
//步骤0: D1查询软件授权证书详情 - querySoftwareAuthorizationDetail
        QuerySoftwareAuthorizationDetailRespDto querySoftwareAuthorizationDetailRespDto = null;
        QuerySoftwareAuthorizationDetailReqDto querySoftwareAuthorizationDetailReqDto = new QuerySoftwareAuthorizationDetailReqDto();
        if (reqDto != null) {
            querySoftwareAuthorizationDetailReqDto.setAuthorizationId(reqDto.getAuthorizationId());//SimpleFieldAssign//sourceId:928589_1
        }

        /*D1查询软件授权证书详情[6610]   */
        Assert.isNull(querySoftwareAuthorizationDetailReqDto.getAuthorizationId(), "B1查询软件授权证书详情(管理)-D1查询软件授权证书详情-授权证书ID不能为空", false);
        querySoftwareAuthorizationDetailRespDto = fwBaseSecurityClient.querySoftwareAuthorizationDetail(querySoftwareAuthorizationDetailReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


        querySoftwareAuthorizationDetailRespDto_1 = querySoftwareAuthorizationDetailRespDto;

//步骤1: D1-3查询个人就职记录信息详情（公共） - queryInductionRecordInfoDetailCom
        QueryInductionRecordInfoDetailComRespDto queryInductionRecordInfoDetailComRespDto = null;
        if (querySoftwareAuthorizationDetailRespDto != null) {
            QueryInductionRecordInfoDetailComReqDto queryInductionRecordInfoDetailComReqDto = new QueryInductionRecordInfoDetailComReqDto();
            if (querySoftwareAuthorizationDetailRespDto != null) {
                queryInductionRecordInfoDetailComReqDto.setInductionRecordId(querySoftwareAuthorizationDetailRespDto.getOperationInductionId());//SimpleFieldAssign//sourceId:928654_1
            }

            /*D1-3查询个人就职记录信息详情（公共）[715]   */
            Assert.isNull(queryInductionRecordInfoDetailComReqDto.getInductionRecordId(), "B1查询软件授权证书详情(管理)-D1-3查询个人就职记录信息详情（公共）-就职记录ID不能为空", false);
            queryInductionRecordInfoDetailComRespDto = fwBaseInductionRecordClient.queryInductionRecordInfoDetailCom(queryInductionRecordInfoDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


            queryInductionRecordInfoDetailComRespDto_1 = queryInductionRecordInfoDetailComRespDto;
        }

        BffQuerySoftwareAuthorizationDetailRespDto retData = new BffQuerySoftwareAuthorizationDetailRespDto();
        if (querySoftwareAuthorizationDetailRespDto_1 != null) {
            retData.setAuthorizationId(querySoftwareAuthorizationDetailRespDto_1.getAuthorizationId());//SimpleFieldAssign//sourceId:928624_1
            retData.setAuthorizationName(querySoftwareAuthorizationDetailRespDto_1.getAuthorizationName());//SimpleFieldAssign//sourceId:928625_1
            retData.setSchOpenRecordId(querySoftwareAuthorizationDetailRespDto_1.getSchOpenRecordId());//SimpleFieldAssign//sourceId:928626_1
            retData.setSchOpenRecordCode(querySoftwareAuthorizationDetailRespDto_1.getSchOpenRecordCode());//SimpleFieldAssign//sourceId:928627_1
            retData.setApplObjType(querySoftwareAuthorizationDetailRespDto_1.getApplObjType());//SimpleFieldAssign//sourceId:931062_1
            retData.setAuthorizationKeyTypeCode(querySoftwareAuthorizationDetailRespDto_1.getAuthorizationKeyTypeCode());//SimpleFieldAssign//sourceId:932207_1
            retData.setAuthorizationObjectId(querySoftwareAuthorizationDetailRespDto_1.getAuthorizationObjectId());//SimpleFieldAssign//sourceId:928629_1
            retData.setApplexName(querySoftwareAuthorizationDetailRespDto_1.getApplexName());//SimpleFieldAssign//sourceId:928630_1
            retData.setAuthorizationSpaceId(querySoftwareAuthorizationDetailRespDto_1.getAuthorizationSpaceId());//SimpleFieldAssign//sourceId:928631_1
            retData.setSpaceShortName(querySoftwareAuthorizationDetailRespDto_1.getSpaceShortName());//SimpleFieldAssign//sourceId:928632_1
            retData.setDnsAddresses(querySoftwareAuthorizationDetailRespDto_1.getDnsAddresses());//SimpleFieldAssign//sourceId:928633_1
            retData.setIpAddresses(querySoftwareAuthorizationDetailRespDto_1.getIpAddresses());//SimpleFieldAssign//sourceId:928634_1
            retData.setServerMacCode(querySoftwareAuthorizationDetailRespDto_1.getServerMacCode());//SimpleFieldAssign//sourceId:928635_1
            retData.setIsMainAuthorization(querySoftwareAuthorizationDetailRespDto_1.getIsMainAuthorization());//SimpleFieldAssign//sourceId:928636_1
            retData.setIsDeploymentEnabled(querySoftwareAuthorizationDetailRespDto_1.getIsDeploymentEnabled());//SimpleFieldAssign//sourceId:928637_1
            retData.setAuthorizationSchemeId(querySoftwareAuthorizationDetailRespDto_1.getAuthorizationSchemeId());//SimpleFieldAssign//sourceId:928638_1
            retData.setSchemeAuthorizationType(querySoftwareAuthorizationDetailRespDto_1.getSchemeAuthorizationType());//SimpleFieldAssign//sourceId:928639_1
            retData.setAuthorizationNum(querySoftwareAuthorizationDetailRespDto_1.getAuthorizationNum());//SimpleFieldAssign//sourceId:928640_1
            retData.setAuthorizationStartTime(querySoftwareAuthorizationDetailRespDto_1.getAuthorizationStartTime());//SimpleFieldAssign//sourceId:928641_1
            retData.setAuthorizationEndTime(querySoftwareAuthorizationDetailRespDto_1.getAuthorizationEndTime());//SimpleFieldAssign//sourceId:928642_1
            retData.setAuthorizationUnit(querySoftwareAuthorizationDetailRespDto_1.getAuthorizationUnit());//SimpleFieldAssign//sourceId:928643_1
            retData.setDeployTypeCode(querySoftwareAuthorizationDetailRespDto_1.getDeployTypeCode());//SimpleFieldAssign//sourceId:928644_1
            retData.setSubjectLifeCycle(querySoftwareAuthorizationDetailRespDto_1.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:928645_1
            retData.setOperationInductionId(querySoftwareAuthorizationDetailRespDto_1.getOperationInductionId());//SimpleFieldAssign//sourceId:928646_1
            retData.setOperateTime(querySoftwareAuthorizationDetailRespDto_1.getOperateTime());//SimpleFieldAssign//sourceId:928647_1
        }
        if (queryInductionRecordInfoDetailComRespDto_1 != null) {
            retData.setUserId(queryInductionRecordInfoDetailComRespDto_1.getUserId());//SimpleFieldAssign//sourceId:928666_1
            retData.setIdCardName(queryInductionRecordInfoDetailComRespDto_1.getIdCardName());//SimpleFieldAssign//sourceId:928667_1
            retData.setNickName(queryInductionRecordInfoDetailComRespDto_1.getNickName());//SimpleFieldAssign//sourceId:928668_1
        }


        return retData;
    }

    /**
     * B1修改软件授权证书(管理)[6614]
     * gen by moon at 5/13/2023, 9:16:07 PM
     */
    @Trace(operationName = "B1修改软件授权证书(管理)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Override
    public BffUpdateSoftwareAuthorizationRespDto updateSoftwareAuthorization(BffUpdateSoftwareAuthorizationReqDto reqDto) {


        //步骤0: D1修改软件授权证书 - updateSoftwareAuthorization
        UpdateSoftwareAuthorizationRespDto updateSoftwareAuthorizationRespDto = null;
        UpdateSoftwareAuthorizationReqDto updateSoftwareAuthorizationReqDto = new UpdateSoftwareAuthorizationReqDto();
        if (reqDto != null) {
            updateSoftwareAuthorizationReqDto.setAuthorizationId(reqDto.getAuthorizationId());//SimpleFieldAssign//sourceId:928822_1
            updateSoftwareAuthorizationReqDto.setAuthorizationSpaceId(reqDto.getAuthorizationSpaceId());//SimpleFieldAssign//sourceId:936450_1
            updateSoftwareAuthorizationReqDto.setAuthorizationName(reqDto.getAuthorizationName());//SimpleFieldAssign//sourceId:928823_1
            updateSoftwareAuthorizationReqDto.setDnsAddresses(reqDto.getDnsAddresses());//SimpleFieldAssign//sourceId:931075_1
            updateSoftwareAuthorizationReqDto.setIpAddresses(reqDto.getIpAddresses());//SimpleFieldAssign//sourceId:931076_1
            updateSoftwareAuthorizationReqDto.setServerMacCode(reqDto.getServerMacCode());//SimpleFieldAssign//sourceId:931077_1
            updateSoftwareAuthorizationReqDto.setIsDeploymentEnabled(reqDto.getIsDeploymentEnabled());//SimpleFieldAssign//sourceId:928824_1
            updateSoftwareAuthorizationReqDto.setDeployTypeCode(reqDto.getDeployTypeCode());//SimpleFieldAssign//sourceId:928825_1
        }

        /*D1修改软件授权证书[6613]   */
        Assert.isNull(updateSoftwareAuthorizationReqDto.getAuthorizationId(), "B1修改软件授权证书(管理)-D1修改软件授权证书-授权证书ID不能为空", false);
        Assert.isNull(updateSoftwareAuthorizationReqDto.getAuthorizationSpaceId(), "B1修改软件授权证书(管理)-D1修改软件授权证书-租户空间ID不能为空", false);
        updateSoftwareAuthorizationRespDto = fwBaseSecurityClient.updateSoftwareAuthorization(updateSoftwareAuthorizationReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


        BffUpdateSoftwareAuthorizationRespDto retData = new BffUpdateSoftwareAuthorizationRespDto();


        return retData;
    }

    /**
     * B1删除软件授权证书(管理)[6617]
     * gen by moon at 5/12/2023, 3:16:03 AM
     */
    @Trace(operationName = "B1删除软件授权证书(管理)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Override
    public BffDeleteSoftwareAuthorizationRespDto deleteSoftwareAuthorization(BffDeleteSoftwareAuthorizationReqDto reqDto) {


        //步骤0: D1删除软件授权证书 - deleteSoftwareAuthorization
        DeleteSoftwareAuthorizationRespDto deleteSoftwareAuthorizationRespDto = null;
        DeleteSoftwareAuthorizationReqDto deleteSoftwareAuthorizationReqDto = new DeleteSoftwareAuthorizationReqDto();
        if (reqDto != null) {
            deleteSoftwareAuthorizationReqDto.setAuthorizationId(reqDto.getAuthorizationId());//SimpleFieldAssign//sourceId:928920_1
        }

        /*D1删除软件授权证书[6616]   */
        Assert.isNull(deleteSoftwareAuthorizationReqDto.getAuthorizationId(), "B1删除软件授权证书(管理)-D1删除软件授权证书-授权证书ID不能为空", false);
        deleteSoftwareAuthorizationRespDto = fwBaseSecurityClient.deleteSoftwareAuthorization(deleteSoftwareAuthorizationReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


        BffDeleteSoftwareAuthorizationRespDto retData = new BffDeleteSoftwareAuthorizationRespDto();


        return retData;
    }

    /**
     * B1查询安全License详情(管理)[6686]
     * gen by moon at 5/14/2023, 10:25:59 PM
     */
    @Trace(operationName = "B1查询安全License详情(管理)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Override
    public BffQuerySecurityLicenseDetailRespDto querySecurityLicenseDetail(BffQuerySecurityLicenseDetailReqDto reqDto) {


        QuerySecurityLicenseDetailRespDto querySecurityLicenseDetailRespDto_1 = null;
//步骤0: D2查询安全License详情 - querySecurityLicenseDetail
        QuerySecurityLicenseDetailRespDto querySecurityLicenseDetailRespDto = null;
        QuerySecurityLicenseDetailReqDto querySecurityLicenseDetailReqDto = new QuerySecurityLicenseDetailReqDto();
        if (reqDto != null) {
            querySecurityLicenseDetailReqDto.setAuthorizationKeyTypeCode(reqDto.getAuthorizationKeyTypeCode());//SimpleFieldAssign//sourceId:940846_1
        }

        /*D2查询安全License详情[6685]   */
        Assert.isNull(querySecurityLicenseDetailReqDto.getAuthorizationKeyTypeCode(), "B1查询安全License详情(管理)-D2查询安全License详情-开通钥匙类型标识不能为空", false);
        querySecurityLicenseDetailRespDto = fwCompSecurityClient.querySecurityLicenseDetail(querySecurityLicenseDetailReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


        querySecurityLicenseDetailRespDto_1 = querySecurityLicenseDetailRespDto;

        BffQuerySecurityLicenseDetailRespDto retData = new BffQuerySecurityLicenseDetailRespDto();
        if (querySecurityLicenseDetailRespDto_1 != null) {
            retData.setSchOpenRecordId(querySecurityLicenseDetailRespDto_1.getSchOpenRecordId());//SimpleFieldAssign//sourceId:940855_1
            retData.setSchOpenRecordCode(querySecurityLicenseDetailRespDto_1.getSchOpenRecordCode());//SimpleFieldAssign//sourceId:940856_1
            retData.setDeployTypeCode(querySecurityLicenseDetailRespDto_1.getDeployTypeCode());//SimpleFieldAssign//sourceId:940857_1
            retData.setSchemeAuthorizationType(querySecurityLicenseDetailRespDto_1.getSchemeAuthorizationType());//SimpleFieldAssign//sourceId:940858_1
            retData.setAuthorizationNum(querySecurityLicenseDetailRespDto_1.getAuthorizationNum());//SimpleFieldAssign//sourceId:940859_1
            retData.setAuthorizationStartTime(querySecurityLicenseDetailRespDto_1.getAuthorizationStartTime());//SimpleFieldAssign//sourceId:940860_1
            retData.setAuthorizationEndTime(querySecurityLicenseDetailRespDto_1.getAuthorizationEndTime());//SimpleFieldAssign//sourceId:940861_1
        }


        return retData;
    }
    //
}
